{php include wl_template('common/header');}
<style>
	.page-heading {padding: 5px 0;border-bottom: 1px solid #ccc;margin-bottom: 20px;position: relative;margin-left: 15px;}
</style>
<ul class="nav nav-tabs">
	<li class="active"><a href="#">会员权益</a></li>
</ul>	
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a href="{php echo web_url('halfcard/halfset/userrightedit')}" class="btn btn-primary">添加权益</a>
		</div>
	</div>	
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:10%;">图片</th>
						<th style="width:10%;">显示顺序</th>
						<th style="width:25%;">标题</th>
						<th style="width:30%;">连接</th>
						<th style="width:10%;">状态</th>
						<th class="text-right" style="width:15%;">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $navs $nav}
					<tr>
						<td><img class="scrollLoading" src="{php echo tomedia($nav['thumb'])}" data-url="{php echo tomedia($nav['thumb'])}" onerror="this.src='{php echo tomedia($nav['thumb'])}'" height="50" width="50"/></td>
						<td>{$nav['displayorder']}</td>
						<td><span {if $nav['color']} style="color: {$nav['color']};" {/if}>{$nav['name']}</span></td>
						<td class="text-lue">{$nav['link']}</td>
						<td>{if $nav['enabled'] == 0}<span class="label label-default">隐藏</span>{/if}
							{if $nav['enabled'] == 1}<span class="label label-success">显示</span>{/if}</td>
						<td class="text-right">
							<a href="{php echo web_url('halfcard/halfset/userrightedit',array('id'=>$nav['id']))}" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" title="修改"><i class="fa fa-edit"></i></a>
							<a href="{php echo web_url('halfcard/halfset/rightdelete',array('id'=>$nav['id']))}"class="btn btn-default btn-sm" data-toggle="ajaxRemove" data-confirm="确认删除此权益项目？" title="删除"><i class="fa fa-times"></i></a>
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>

{php include wl_template('common/footer');}